import request from '@/utils/request'

// 查询交接班列表
export function listWorkchange(query) {
  return request({
    url: '/manage/workchange/list',
    method: 'get',
    params: query
  })
}

// 查询交接班详细
export function getWorkchange(workChangeId) {
  return request({
    url: '/manage/workchange/' + workChangeId,
    method: 'get'
  })
}

// 新增交接班
export function addWorkchange(data) {
  return request({
    url: '/manage/workchange',
    method: 'post',
    data: data
  })
}

// 修改交接班
export function updateWorkchange(data) {
  return request({
    url: '/manage/workchange',
    method: 'put',
    data: data
  })
}

// 删除交接班
export function delWorkchange(workChangeId) {
  return request({
    url: '/manage/workchange/' + workChangeId,
    method: 'delete'
  })
}
